package br.edu.ufersa.scrumgame.facade;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import br.edu.ufersa.scrumgame.dao.DiaDAO;
import br.edu.ufersa.scrumgame.modelo.sistema.Dia;

@Stateless
public class DiaFacadeImp implements DiaFacade {
	
	@EJB
	private DiaDAO diaDAO;
	
	@Override
	public void save(Dia dia) {
		diaDAO.save(dia);
	}

	@Override
	public Dia update(Dia dia) {
		return diaDAO.update(dia);
	}

	@Override
	public void delete(Dia dia) {
		diaDAO.delete(dia);
		
	}

	@Override
	public Dia find(int entityID) {
		return diaDAO.find(entityID);
	}
	
	@Override
	public List<Dia> findAll() {
		return diaDAO.findAll();
	}

	@Override
	public Dia getDiaAtual() {
		return diaDAO.findDiaAtual();
	}

}
